/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.leeassamite.ocr;

import java.util.Comparator;

/**
 *
 * @author leeass
 */
public class ComparableImpl implements Comparator<ComparableImpl>{
    private char chara;
    private int intB;
    private float floatC;
    private int intD;
    private float floatE;

    ComparableImpl() {
    }
    public char getCharA()
    {
        return this.chara;
    }
    public void setCharA(char A_0)
    {
        this.chara = A_0;
    }
    public int getIntB()
    {
        return this.intB;
    }
    public void setIntB(int A_0)
    {
        this.intB = A_0;
    }
    public float getFloatC()
    {
        return this.floatC;
    }
    public void setFloatC(int A_0)
    {
        this.floatC = (float)A_0;
    }
    public int getIntD()
    {
        return this.intD;
    }
    public float getFloatE()
    {
        return this.floatE;
    }
    public void setFloatE(float A_0)
    {
        this.floatE = A_0;
    }
    public ComparableImpl(char A_0, int A_1, float A_2, int A_3)
    {
        this.chara = A_0;
        this.intB = A_1;
        this.floatE = A_2;
        this.intD = A_3;
    }

    public int CompareTo(Object obj)
    {
        ComparableImpl f = (ComparableImpl)obj;
        if (this.getFloatE() < f.getFloatE())
        {
            return 1;
        }
        if (this.getFloatE() == f.getFloatE())
        {
            return 0;
        }
        return -1;
    }

    public int compare(ComparableImpl c1, ComparableImpl c2) {
        if (c1.getFloatE() < c2.getFloatE())
        {
            return 1;
        }
        if (c1.getFloatE() == c2.getFloatE())
        {
            return 0;
        }
        return -1;
    }
}
